IApi.ReadOutputByte 方法

从实体或模拟 I/O 模组的输出读取一个带有位元组偏移量的位元组。

命名空间IntervalZero.KINGSTAR.Base.Api

组合: IntervalZero.KINGSTAR.Base.Api (于 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0

语法

C#VB
KsReturn<byte> ReadOutputByte(
       int Index,
       int ByteOffset
)
Function ReadOutputByte(
       Index As Integer,
       ByteOffset As Integer
) As KsReturn(Of Byte)

参数

Index

型别:int

I/O 模组的索引。索引以 0 为起始;别名将影响此参数。

 

ByteOffset

型别:int

指定位元组偏移量到一个位置,以读取位元组值。最大偏移量由 SlaveStatus 类别中的 OutputLength决定。

回传值

型别:KsReturn<byte>

回传一个 KsError 代码及一个 byte 值。

备注

ReadOutputByte 仅能在连结建立并开始启用时才能呼叫。

可用的 EtherCAT 状态

ecatOP

范例

C#
N/A

参见

IApi 介面

IntervalZero.KINGSTAR.Base.Api 命名空间